﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="tr" >
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="Duygu Akcan" />
	<meta name="keywords" content="design, css, cascading, style, sheets, xhtml, graphic design, w3c, web standards, visual, display" />
	<meta name="description" content="TEGV Matematik test ortamı" />
	<meta name="robots" content="all" />
	<title>TEGV MATEMATİK PORTALI</title>

	<!-- to correct the unsightly Flash of Unstyled Content. http://www.bluerobot.com/web/css/fouc.asp -->
	<?php include_once 'cekirdek.php';	init(); ?>

	<script type="text/javascript">
	
		var dogru_cevap = "Bos";
		
		function loadXMLDoc()
		{
			var xmlhttp;
			if (window.XMLHttpRequest)
			  {// code for IE7+, Firefox, Chrome, Opera, Safari
			  xmlhttp=new XMLHttpRequest();
			  }
			else
			  {// code for IE6, IE5
			  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
			xmlhttp.onreadystatechange=function()
			  {
			  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				{
					dogru_cevap=xmlhttp.responseText;
					kontrol();
				}
			  }
			xmlhttp.open("GET","ajax_info.php",true);
			xmlhttp.send();
		}
		
		
		function kontrol()
			{
				var inputs = document.getElementsByTagName("input");
				var girilen_cevap = "Bos";
				for (i=0;i<4;i++)
				{
					if (inputs[i].checked)
					{
						girilen_cevap = inputs[i].value;
					}
				}
				if (girilen_cevap == dogru_cevap)
				{
					document.getElementById("dogru").innerHTML = "Doğru Cevap";
				}
				else
				{
					document.getElementById("dogru").innerHTML = "Yanlış Cevap";
				}
			}
	
	</script>
	
	<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<!--     -->

<body id="css-zen-garden">

<div id="container">

	<div id="intro">
		<div id="pageHeader">
			<h1><span>TEGV MATEMATİK PORTALI</span></h1>
		</div>
	</div>

	
	<div id="linkList">
		<div id="linkList2">

			<div id="lselect">
				<h3 class="select"><span>Lütfen bir sınıf seçiniz.</span></h3>
				<ul>
					<li><a href="?cssfile=/213/213.css&amp;page=0">1. Sınıf</a></li>
					<li><a href="?cssfile=/212/212.css&amp;page=0">2. Sınıf</a></li>

					<li><a href="?cssfile=/211/211.css&amp;page=0">3. Sınıf</a></li>
					<li><a href="?cssfile=/210/210.css&amp;page=0">4. Sınıf</a></li>
					<li><a href="?cssfile=/209/209.css&amp;page=0">5. Sınıf</a></li>

					<li><a href="?cssfile=/208/208.css&amp;page=0">6. Sınıf</a></li>
					<li><a href="?cssfile=/207/207.css&amp;page=0">7. Sınıf</a></li>
					<li><a href="?cssfile=/206/206.css&amp;page=0">8. Sınıf</a></li>
				</ul>
			</div>

		</div>

	</div>	
	
	<div id="supportingText">
		<div id="soru">
			<div id="resim_soru">
				<p id="text_soru"><?php soru(); ?></p>
				
			</div>
			
		</div>

		<div id="secenek_a"> 
			A<input type="radio" value="A" name="secenek" />
			<p id="text_a"><?php secenek_a(); ?></p>
			
		</div>

		<div id="secenek_b">
			B<input type="radio" value="B" name="secenek" />
			<p id="text_b"><?php secenek_b(); ?></p>
			
		</div>

		<div id="secenek_c">
			C<input type="radio" value="C" name="secenek" />
			<p id="text_c"><?php secenek_c(); ?></p>
			
		</div>
		
		<div id="secenek_d">
			D<input type="radio" value="D" name="secenek" />
			<p id="text_d"><?php secenek_d(); ?></p>
			
		</div>
		
		<div>
			<p id="dogru">burası değişecek</p>
			<button type="button" onclick="loadXMLDoc()">cevapla</button>
		</div>
		
		<div id="footer">
			
			
		</div>

	</div>

</div>

</body>
</html>